/*
 * txdnet.cn tonydon
 * by netbeans ide 7.2
 */
package cn.txdnet.txcms.query;

import cn.txdnet.txweb.utils.StringUtil;
import txdnet.util.StaticMark;

/**
 *
 * @author tangxiaodong
 */
public class TagslibQuery extends BaseQuery {

    private static final long serialVersionUID = -6199893759726891069L;
    
    private String tagname;
    
    private Integer cid;
    
    private Byte channeltype;
    
    private Byte pubstate;
    
    @Override
    public void filter() {
        if (!StringUtil.isEmpty(tagname)) {
            tagname = StaticMark.STR_PERCENT.concat(tagname).concat(StaticMark.STR_PERCENT);
        }
    }

    /**
     * @return the tagname
     */
    public String getTagname() {
        return tagname;
    }

    /**
     * @param tagname the tagname to set
     */
    public void setTagname(String tagname) {
        this.tagname = tagname;
    }

    /**
     * @return the cid
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * @param cid the cid to set
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * @return the channeltype
     */
    public Byte getChanneltype() {
        return channeltype;
    }

    /**
     * @param channeltype the channeltype to set
     */
    public void setChanneltype(Byte channeltype) {
        this.channeltype = channeltype;
    }

    /**
     * @return the pubstate
     */
    public Byte getPubstate() {
        return pubstate;
    }

    /**
     * @param pubstate the pubstate to set
     */
    public void setPubstate(Byte pubstate) {
        this.pubstate = pubstate;
    }
}
